package nc.bs.hrhi.bp;

import java.util.Map;

import nc.bs.dao.DAOException;
import nc.jdbc.framework.processor.MapProcessor;
import nc.vo.pubapp.AppContext;

public class LoginInfoBp extends AbsPubOp{

	public Map<String, String> get() throws DAOException {

		String cuserid = AppContext.getInstance().getPkUser();
		
		String sql = "select bd_psndoc.code, bd_psndoc.name, bd_psndoc.pk_psndoc from bd_psndoc left join sm_user on sm_user.pk_psndoc=bd_psndoc.pk_psndoc\r\n" + 
				"where sm_user.cuserid='"+cuserid+"'";
		
		Map<String, String> map = (Map<String, String>) getDao().executeQuery(sql, new MapProcessor());
		
		return map;
	}
}
